import request from '@/config/request.js'; 

// 查询学生筛查计划明细列表
export const listScreenPlanInfo = (params) => request.get('/files/screenPlanInfo/list', params)
// export function listScreenPlanInfo(query) {
//   return request({
//     url: '/files/screenPlanInfo/list',
//     method: 'get',
//     params: query
//   })
// }
// 查询学生筛查计划列表
export const mainListScreenPlanInfo = (params) => request.get('/files/screenPlanInfo/mainList', params)
// export function mainListScreenPlanInfo(query) {
//   return request({
//     url: '/files/screenPlanInfo/mainList',
//     method: 'get',
//     params: query
//   })
// }

// 查询学生筛查计划明细详细 
export const getScreenPlanInfo = (id) => request.get('/files/screenPlanInfo/' + id)
export const stuInfo = (id) => request.get('/mobile/work/getStudentInfo/' + id)
export const stuInfoJh = (id) => request.get('/mobile/work/getPlanStudentInfo/' + id)
export const getDnygScData = (id) => request.get('/mobile/work/getDnygScData/' + id)

// export function getScreenPlanInfo(id) {
//   return request({
//     url: '/files/screenPlanInfo/' + id,
//     method: 'get'
//   })
// }
// 生成学生筛查计划明细
export const generateScreenPlanInfo = (data) => request.post('/files/screenPlanInfo/generate',data)
export const smScreenAdd = (data) => request.post('/mobile/work/smScreenAdd',data)
export const smYkScreenAdd = (data) => request.post('/mobile/work/smYkScreenAdd',data)
export const dnygScAdd = (data) => request.post('/mobile/work/dnygScAdd',data)

// export function generateScreenPlanInfo(data) {
//   return request({
//     url: '/files/screenPlanInfo/generate',
//     method: 'post',
//     data: data
//   })
// }
//扫码上传筛查结果
export const smScreenPlanAdd = (data) => request.post('/mobile/work/smScreenPlanAdd',data)

// 新增学生筛查计划明细
export const addFilesStudent = (data) => request.post('/files/filesStudent',data)
export const updateFilesStudent = (data) => request.put('/files/filesStudent',data)
export const reNewScreenPlanInfo = (data) => request.post('/files/screenPlanInfo/reNew',data)
// export function addScreenPlanInfo(data) {
//   return request({
//     url: '/files/screenPlanInfo',
//     method: 'post',
//     data: data
//   })
// }

// 修改学生筛查计划明细
// export function updateScreenPlanInfo(data) {
//   return request({
//     url: '/files/screenPlanInfo',
//     method: 'put',
//     data: data
//   })
// }

// 删除学生筛查计划明细
// export function delScreenPlanInfo(id) {
//   return request({
//     url: '/files/screenPlanInfo/' + id,
//     method: 'delete'
//   })
// }
